<?php
class Form_WidgetForm extends Zend_Form{
	public function init(){
		//title element
		$title=$this->createElement('text','title');
		$title->setLabel('Widget Title:');
		$title->setRequired(true);
		$title->setAttrib('size',30);
		$this->addElement($title);
		//content element
		$content=$this->createElement('textarea','content');
		$content->setLabel('Widget Content:');
		$content->setRequired(true);
		$content->setAttrib('cols',50);
		$content->setAttrib('rows',4);
		$this->addElement($content);
		//submit button
		$this->addElement('submit','submit',array('label'=>'Submit'));
	}
}
?>